<!doctype html>
<html>
<head>
    <meta charset="UTF-8">  
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>全网通营销管理后台-移动版</title>  
    <link rel="stylesheet" type="text/css" href="../static/js/layout/themes/bootstrap/easyui.css">  
    <link rel="stylesheet" type="text/css" href="../static/js/layout/themes/mobile.css">  
    <link rel="stylesheet" type="text/css" href="../static/js/layout/themes/icon.css">  
    <script type="text/javascript" src="../static/js/jquery.min.js"></script>  
    <script type="text/javascript" src="../static/js/layout/jquery.easyui.min.js"></script> 
    <script type="text/javascript" src="../static/js/layout/jquery.easyui.mobile.js"></script> 
	<script type="text/javascript" src="../static/js/layout/locale/easyui-lang-zh_CN.js"></script>
</head>
<body>
    <form method="POST" class="easyui-navpanel">
        <header>
            <div class="m-toolbar"><span class="m-title">全网通营销管理平台</span></div>
        </header>
        <div style="margin:20px auto;height:100px;  text-align:center;overflow:hidden">  
			<img src="http://www.hstimes.net/project/hstimes/themes/default/images/logo.gif" style="margin:0">
		</div>
        <div style="padding:0 20px">
            <div style="margin-bottom:10px">
                <input class="easyui-textbox easyui-validatebox" value="admin" data-options="required:true" name="username" data-options="prompt:'用户名称',iconCls:'icon-man'" style="width:100%;height:38px">
            </div>
            <div>
                <input class="easyui-textbox easyui-validatebox" value="123456" data-options="required:true" name="password" type="password" data-options="prompt:'',iconCls:'icon-lock'" style="width:100%;height:38px">
            </div>
            
            <div style="text-align:center;margin-top:30px">
                <button class="easyui-linkbutton" style="width:100%;height:40px"><span style="font-size:16px">登录系统</span></button>
            </div>
        </div>
	</form>
	<div id="dlg" class="easyui-dialog" style="padding:20px 6px;width:80%;" data-options="modal:true,closed:true,title:'温馨提示'">
		<p id="msg" style="font-size:18px;color:red;padding:15px"></p>
		<div class="dialog-button">
			<a href="javascript:void(0)" class="easyui-linkbutton" style="width:100%;height:35px" onClick="$('#dlg').dialog('close')">好的</a>
		</div>
	</div>
</body>    
</html>
<script>
$(function(){
	$('form').form({
		url: '../welcome/checklogin',
		success:function(c){
			c=eval('('+c+')');
			if(c.login_status=='success') window.location.href='../';
			else{
				$('#msg').html('登录名或密码有误!');
				$('#dlg').dialog('open');
			}
		}
	});
});
</script>